#ifndef COLOR_H
#define COLOR_H

namespace GraphicsColor
{
	class RGB
	{
	private:
		int hex;
	public:
		int r;
		int g;
		int b;

		RGB(int red, int green, int blue);
		
		int getHex() const;
		static int getHex(int red, int green, int blue);
	};
}

inline GraphicsColor::RGB::RGB(int red, int green, int blue) : r(red), g(green), b(blue) 
{
	hex = r<<16 | g<<8 | b;
}

inline int GraphicsColor::RGB::getHex() const
{
	return hex;
}

inline int GraphicsColor::RGB::getHex(int red, int green, int blue)
{
	return (red<<16 | green<<8 | blue);
}

#endif